/*
 * Created on 26/02/2004
 *
 * To change the template for this generated file go to
 * Window - Preferences - Java - Code Generation - Code and Comments
 */
package org.potiorb.orb.marshal;

public class ParamMode {
	public static final int _pm_IN        = 0;
	public static final int _pm_OUT        = 1;
	public static final int _pm_INOUT       = 2;

	public static final ParamMode pm_IN =	new ParamMode(_pm_IN);
	public static final ParamMode pm_OUT = new ParamMode(_pm_OUT);
	public static final ParamMode pm_INOUT = new ParamMode(_pm_INOUT);

	public ParamMode(int value) {
		this.value = value;
	}

	private int value;

	public int value() {
		return value;
	}

	public static final ParamMode type(int value)
	{
		switch(value) {
		default:
			;

		case _pm_IN :
			return ParamMode.pm_IN;

		case _pm_OUT :
			return ParamMode.pm_OUT;

		case _pm_INOUT :
			return ParamMode.pm_INOUT;
		}
	}

	public String toString() {
		String[] types = {"IN", "OUT", "INOUT"};
		return types[value];
	}

}
